#include<iostream>
using namespace std;

double f(double x, double a, double b, double c, double d) {
    return a*x*x*x + b*x*x + c*x + d;
}

int main() {
    double a, b, c, d, s = 0;
    cin >> a >> b >> c >> d;
    for(int i=-100; i<100; i++) {
        double l = i, r = i+1;
        if(f(l, a, b, c, d) == 0) {
            printf("%.2lf ", l);
            if(++s == 3)    break;
        }

        double y1 = f(l, a, b, c, d), y2 = f(r, a, b, c, d);
        if(y1 * y2 >= 0)    continue;

        while(r-l > 1e-3) {
            double mid = (l + r) / 2;
            if(f(mid, a, b, c, d) * y1 <= 0)    r = mid;
            else    l = mid;
        }
        printf("%.2lf ", r);
        if(++s == 3)    break;
    }
    return 0;
}